<div class = "ui modal">
    <i class = "close icon"></i>
    <div class = "header">
        新建报表
    </div>
    <div class = "image content" style = "height: 318px;">
        <table class = "ui table" style = "border:none;border-bottom: 1px solid rgba(34,36,38,.1);">
            <tbody>
                <tr>
                    <td class = "w150 tr">
                        报表名称:
                    </td>
                    <td style = "text-align: left;">
                        <div class = "ui input tl" style = "width:300px;">
                            <input ng-model = "pageName" type = "text" placeholder = "请在此输入新报表名称">
                        </div>
                    </td>
                </tr>
                <tr ng-show = "dataSources.length && !from_data_manager">
                    <td>数据源:</td>
                    <td>
                        <div class = "ui selection dropdown sourceList fl" style = "width:300px;padding:.28571429em 2.6em .28571429em 1em;line-height: 1.5em;">
                            <input type = "hidden" name = "gender">
                            <i class = "dropdown icon"></i>
                            <div class = "default text">{{curr_source.sourceDesc}}</div>
                            <div class = "menu">
                                <div class = "item" data-value = "1" ng-repeat = "source in dataSources" ng-click = "switctSource(source)">{{source.sourceDesc}}</div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr ng-show = "dataSources.length  && !from_data_manager">
                    <td>
                        数据分类:
                    </td>
                    <td>
                        <div class = "ui selection dropdown categoryList fl" style = "width:300px;padding:.28571429em 2.6em .28571429em 1em;line-height: 1.5em;">
                            <input type = "hidden" name = "gender">
                            <i class = "dropdown icon"></i>
                            <div class = "default text">{{tableType}}</div>
                            <div class = "menu">
                                <div class = "item" data-value = "1" ng-click = "switchTables('IbmTables')">数据库源数据</div>
                                <!-- <div class = "item" data-value = "1" ng-click = "switchTables('RelationTables')">关联关系数据</div> -->
                                <div class = "item" data-value = "1" ng-click = "switchTables('multiRelationTables')">多表关联数据</div>
                                <div class = "item" data-value = "1" ng-click = "switchTables('IbmAggregateFunctions')">分类汇总数据</div>
                                <div class = "item" data-value = "1" ng-click = "switchTables('FileTables')">上传文件数据</div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr ng-show = "dataSources.length  && !from_data_manager">
                    <td>数据表:</td>
                    <td>
                        <div ng-show = "dataSources.length" class = "ui selection dropdown tableList fl" style = "width:300px;padding:.28571429em 2.6em .28571429em 1em;line-height: 1.5em;">
                            <input type = "hidden" name = "gender">
                            <i class = "dropdown icon"></i>
                            <div class = "default text">{{curr_tablle.tableDesc}}</div>
                            <div class = "menu">
                                <div class = "item" data-value = "1" ng-repeat = "table in tables" ng-click = "switchTable($index)">{{table.tableDesc}}</div>
                            </div>
                        </div>
                        <div ng-hide = "dataSources.length">
                            您当前尚无任何数据表,您可以先进入
                            <a class = "cp" ng-click = "toDbManager()">数据管理</a>
                            模块添加数据源
                        </div>
                    </td>
                </tr>
                <tr ng-show = "from_data_manager">
                    <td>数据表:</td>
                    <td style = "text-align: left">
                        {{tableDesc_from_data_manager}}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class = "actions">
        <div class = "red tc" ng-show = "errInfoShown" ng-bind = "errInfo"></div>
        <button class = "ui red button" ng-click = "ok()">
            确定
        </button>
        <button class = "ui button" ng-click = "close()">
            取消
        </button>
    </div>
</div>